//
//  HomeViewController.m
//  crm
//
//  Created by weacar on 2017/12/14.
//  Copyright © 2017年 weacar.com. All rights reserved.
//

#import "HomeViewController.h"
#import "ClueViewController.h"


@interface HomeViewController ()


@end

@implementation HomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    UIButton *nextbutton = [UIButton buttonWithType:(UIButtonTypeCustom)];
    nextbutton.backgroundColor = KColor_Gray_99;
    [nextbutton setTitle:@"线索" forState:(UIControlStateNormal)];
    [nextbutton.titleLabel setTextColor:KColor_White];
    [nextbutton addTarget:self action:@selector(nextButtonAction) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:nextbutton];
    [nextbutton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.view);
        make.size.mas_equalTo(CGSizeMake(120*kMainScaleMiunes, 30*kMainScaleMiunes));
    }];
    
}

- (void)nextButtonAction
{
    ClueViewController *clueVC = [[ClueViewController alloc] init];
    clueVC.title = @"所有线索";
    [self.navigationController pushViewController:clueVC animated:YES];
}

@end
